package cn.kgc.ssm.service;

import cn.kgc.ssm.dto.QueryUser;
import cn.kgc.ssm.entity.User;
import cn.kgc.ssm.form.UserLoginForm;
import cn.kgc.ssm.util.ResponseResult;

import javax.servlet.http.HttpSession;

/**
 * @author 课工场
 * @date 2023/10/19
 * @description
 */
public interface UserService {


    ResponseResult registerUser(User user);

    ResponseResult login(UserLoginForm loginForm, HttpSession session);

    ResponseResult getUserByName(String username);

    ResponseResult editInfo(User user);

    ResponseResult changePwd(String oldPwd, String newPassword, HttpSession session);

    ResponseResult userPage(QueryUser userPageDTO);

    ResponseResult addUser(User user);

    ResponseResult batchDelete(Integer[] ids);
}
